php datetime object get unix timestamp

31

php datetime object get unix timestamp -

$date = new DateTime();
echo $date->getTimestamp();

Comments

Submit
0 Comments